package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.es.SkuEsMode;
import lombok.Data;

import java.util.List;

/**
 * @Author: Farewell
 * @Date: 2022/6/9 15:07
 * @Description:
 */
@Data
public class SearchResp {
    /**
     * 查询得到的商品信息
     */
    private List<SkuEsMode> products;
    /**
     * 分页信息
     */
    private Integer pageNum;
    private Long total;
    private Integer totalPages;
    /**
     * 涉及到的品牌
     */
    List<BrandVo> brands;
    /**
     * 涉及到的所有分类
     */
    List<CatalogVo> catalogs;

    /**
     * 涉及到的属性
     */
    List<AttrVo> attrs;

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
